cl349@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 23:51:15 +0000 (00:51 +0100)]
Fix same_vm test by adding missing '$'.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 23:49:51 +0000 (00:49 +0100)]
Use test ([) instead of expr to compare integers.
expr $int1 '<' $int2 seems to be broken on some shells.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 20:53:01 +0000 (21:53 +0100)]
Fix request-notification holdoff in blkback. New code is
more correct and clearer in intent.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 20:17:11 +0000 (21:17 +0100)]
Remove scary warning message about 'breaking irq affinity'
when hot-unplugging cpus. It is a harmless side-effect of
running the irqbalance daemon in user space.
Signed-off-by: Keir Fraser <keir@xensource.com>
iap10@freefall.cl.cam.ac.uk [Sat, 3 Dec 2005 19:16:04 +0000 (20:16 +0100)]
Merge
iap10@freefall.cl.cam.ac.uk [Sat, 3 Dec 2005 19:05:39 +0000 (20:05 +0100)]
Update xend-config.sxp so that dom0-min-mem is 196MB by default, as this is rather more user friendly.
Also do some minor fixes to the README
Signed-off-by: ian@xensource.com
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 18:09:19 +0000 (19:09 +0100)]
Always initialise a swiotlb for domain0. Make it a small
aperture (2MB) for small systems (< 2GB).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 16:59:37 +0000 (17:59 +0100)]
Enable multiple NICs for vmx domain by configuration file
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 16:58:31 +0000 (17:58 +0100)]
Set the device model windows title as the domain name
This helps when creating multile vmx domain.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 16:41:16 +0000 (17:41 +0100)]
Fixes unmodified 32-bit guest support on the x86_64 Xen.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
cl349@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 12:36:22 +0000 (13:36 +0100)]
Fix block backend teardown when the device didn't setup completely.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
emellor@leeni.uk.xensource.com [Sat, 3 Dec 2005 12:21:52 +0000 (12:21 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Sat, 3 Dec 2005 12:21:27 +0000 (12:21 +0000)]
Set hostname in DHCP config from the guest name, and if more than one interface
is specified, from guest-2, guest-3 etc. Have the DHCP server send the
hostname to the guest.
Added a lock around DHCP config file frobbing, to avoid racing creation vs
deletion.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 10:41:49 +0000 (11:41 +0100)]
Fix blkback request notification holdoff. req_cons must be
updated before make_response() is called. This fixes attaching
ramdisk-backed vbds to a blkfront.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 10:00:03 +0000 (11:00 +0100)]
Fix typo in previous changeset. Include is ../grant_table.h
not ../gnttab.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 09:50:22 +0000 (10:50 +0100)]
Inclide grant_ref_t definition in split-driver struct
defns.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 09:44:38 +0000 (10:44 +0100)]
Merge with xen-ia64-unstable.hg
kaf24@firebug.cl.cam.ac.uk [Sat, 3 Dec 2005 09:44:01 +0000 (10:44 +0100)]
Using a slow serial console with sync_console on SMP leaves an
unusable system: it gets into a flood of
Timer ISR/0: Time went backwards: delta=-
3566279 cpu_delta=
16433721
shadow=
2019998373 off=
420435384 processed=
2444000000
cpu_processed=
2424000000
0:
2424000000
1:
2444000000
messages which swamps the console and leaves things almost, but not
quite, completely hung. It is a simple matter to ratelimit these
printks, which completely eliminates the problem.
emellor@leeni.uk.xensource.com [Sat, 3 Dec 2005 00:51:36 +0000 (00:51 +0000)]
Read from the store if the filename reported by losetup has been truncated (the
loop driver stores only the first 64 chars of the filename). In this case, we
need to read through the store until we find the domain using the device, and
read the configured filename from there instead.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 22:27:04 +0000 (22:27 +0000)]
Merged.
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 21:52:41 +0000 (15:52 -0600)]
Revert to simpler ia64 defconfigs, generic one causes loopback failures
cl349@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 21:15:58 +0000 (22:15 +0100)]
Fix vif-net script for setups where eth0 has no IP address.
Use the IP address associated with the backend network interface
for connections from dom0 to the guest connected to this network
interface.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 18:55:00 +0000 (12:55 -0600)]
Minor changes due to file movement to merge xen-unstable with xen-ia64-unstable
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 18:52:25 +0000 (12:52 -0600)]
Merge
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 18:26:58 +0000 (19:26 +0100)]
Fix PAE bootstrap.
Signed-off-by: Keir Fraser <keir@xensource.com>
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 18:12:11 +0000 (12:12 -0600)]
Stack pal call emulation implemented. (by Tristan Gingold)
PAL_HALT emulation added: stop machine if dom0, shutdown domain otherwise.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 17:56:24 +0000 (18:56 +0100)]
Add a defensive batched tlb flush to free_page_type(), to
ensure the linear_pg_table remains in sync with modified
page table structure. Otherwise we can update stale entries
and screw reference counts (but probably only when running
a malicious domain).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 17:00:49 +0000 (18:00 +0100)]
Move cpu0_stack out of Xen text section and into BSS. This
avoids getting loads of bogus cpu0_stack lines in call
backtraces from non-debug builds.
Doing this requires greater alignment of the BSS section,
which reveals a bug in ld where the alignment padding is
not added to the program segment's memsz field. We get around
this by finding the address of the last symbol in the image,
and increasing our load image's memsz to include that symbol.
Also some cleanups to the linker scripts.
Signed-off-by: Keir Fraser <keir@xensource.com>
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 16:27:22 +0000 (10:27 -0600)]
Update xen-capable elilo to support compressed dom0 kernel images (by Alex Williamson)
This will be released in next official version of elilo but is included
in Xen/ia64 for developer and user convenience until the new version of
elilo is more widely distributed.
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 16:12:07 +0000 (10:12 -0600)]
Enable serial input for Xen (tied to ifdef, default off for now)
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
djm@kirby.fc.hp.com [Fri, 2 Dec 2005 16:06:42 +0000 (10:06 -0600)]
Fix pointer in vmx vmmu init code (by Anthony Xu and Kevin Tian)
dan@guaranine.beaverton.ibm.com [Fri, 2 Dec 2005 15:57:24 +0000 (15:57 +0000)]
Make "xm list --long" generate device configuration data from xenstore state
instead of internal xend state.
Signed-off-by: Dan Smith <danms@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:52:47 +0000 (15:52 +0000)]
This patch adds a new domain config option, 'cpus' which is a list of
CPUs a domains' vcpus can use. The older 'cpu' config option is
prepended to the list of cpus to use and will keep the behavior of
pinning VCPU0.
The cpus option supports ranges and negation, so:
cpus = "0-3,5,^1" produces -> [0,2,3,5]
The list is circular, so in a domain with the following config:
vcpus = 4
cpus = "0,3,7" # Use any of 0, 3, 7 for this domain.
would see vcpus 0-3 pinned to cpus 0,3,7,0 respectively.
Also, the pin operation is moved before the memory reservation as vcpu
to cpu mapping will be helpful for future NUMA work when trying to
allocate pages close to the physical cpus being used.
An update to the display of cpumap was needed to normalize the cpumap
values to the range of possible cpus.
I've also included some text for the xmdomain.cfg(5) man page.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:48:55 +0000 (15:48 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:48:44 +0000 (15:48 +0000)]
Fix the block-sharing check for physical devices by using a lock to serialise
the check, reading from the store rather than /sys, and checking whether the
VM for apparently-conflicting uses is actually the same (i.e. this is a
migration or a reboot in progress).
This fixes recent failures in 12_block_attach_shared_domU and recloses bug #331.
This fix includes particularly skanky path slicing inside xenbus_probe, which
it would be nice to remove very soon.
The loopback device check still suffers from the problem that filenames over
64 characters long are truncated.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:39:13 +0000 (15:39 +0000)]
Added /etc/init.d/dhcpd to list of init files to check for (supporting Centos
4.2).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:38:22 +0000 (15:38 +0000)]
Added serialisation facilities. Udev is supposed to serialise events, but sadly
the older hotplug infrastructure does not, so we must be able to serialise the
block-sharing checks (etc) ourselves.
Redirect stderr to /var/log/xen-hotplug.log, for better debugging.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:36:39 +0000 (15:36 +0000)]
Remove the watch on the /vm/<uuid> path when rebooting or migrating. We don't
want to end up with multiple watches on the same path, otherwise we get a
watch event storm after many such reboots or migrates.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:35:22 +0000 (15:35 +0000)]
Don't log every time around the big transaction writing the device details.
This transaction may be starved for a short while, and logging inside the while
loop won't help!
Use new xstransact.complete to tidy up one other transaction.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 15:33:38 +0000 (15:33 +0000)]
Added xen-hotplug.log to the files to collect.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 15:26:57 +0000 (16:26 +0100)]
More console-related cleanups.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 15:14:20 +0000 (16:14 +0100)]
Simplify console driver and avoid unnecessary spinning in the
transmit handler.
Signed-off-by: Keir Fraser <keir@xensource.com>
iap10@freefall.cl.cam.ac.uk [Fri, 2 Dec 2005 14:37:31 +0000 (15:37 +0100)]
Disable devfs from the -xen configs. It's obsolete and was causing problems for some users.
Signed-off-by: ian@xensource.com
sos22@douglas.cl.cam.ac.uk [Fri, 2 Dec 2005 14:16:37 +0000 (15:16 +0100)]
Avoid a hang when probing the partition table on imported block
devices. If you export a device so the importing domain sees it as a
whole disk rather than a partition, then add_disk will try to probe
its partition table. However, we were calling add_disk before the
device was properly connected, and then not connecting it until
add_disk had finished. This meant that we ended up never actually
connecting the device, and any accesses to it would then hang.
Fix this by not calling add_disk until we're connected.
Signed-off-by: Steven Smith, sos22@cam.ac.uk
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 12:27:39 +0000 (13:27 +0100)]
Blkif request notifications use generic ring req_event holdoff
mechanism rather than custom mechanism.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 12:16:13 +0000 (13:16 +0100)]
Add padding to ring headers for future expansion.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 12:10:25 +0000 (13:10 +0100)]
Clean up netif messages. Remove bitfields, and create
extensible flag fields in tx requests and rx responses, in
place of specific csum_blank/csum_valid bitfields.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 10:10:01 +0000 (11:10 +0100)]
Fix tpm split driver to include grant-table defintions.
Signed-off-by: Stefan Beger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 10:08:24 +0000 (11:08 +0100)]
While working bug #143, it came to my attention that no verbose error is
loged if the dom0 kernel mangles a packet and tries to checksum
offload it.
This should let the user know what is going wrong (instead of silently
dropping the packet).
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 10:06:40 +0000 (11:06 +0100)]
Fix __get_user() asm warning by making source and dest
operands the same size (32 bits).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 10:05:49 +0000 (11:05 +0100)]
Avoid ns16550 poll timeout underflow.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
smh22@firebug.cl.cam.ac.uk [Fri, 2 Dec 2005 08:54:09 +0000 (09:54 +0100)]
More fixes for live migrate on PAE and 64-bit.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Steven Hand <steven@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 01:34:39 +0000 (01:34 +0000)]
Initialise the connection ID when a domain is introduced. This (re)enables
the permission checking in xenstored.
Default the store permissions to read/write nobody (apart from the privileged
domain). Create a /local node with these permissions, ready for inheriting by
children. In Xend, create a /vm node with these permissions too, for the same
reason, and set the permissions on /local/domain/<domid> and each device
backend path to allow the guest domain to access these paths appropriately.
Added xstransact.{set_permissions,SetPermissions,mkdir,Mkdir,complete} as
support facilities.
This closes bug #290.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 01:19:25 +0000 (01:19 +0000)]
Fix error message.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 01:04:09 +0000 (01:04 +0000)]
Use getopt.gnu_getopt rather than getopt.getopt, so that xm list VM --long is
parsed the same as xm list --long VM. This is only in Python 2.3 -- for
Python 2.2 we keep the old getopt.getopt behaviour.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 2 Dec 2005 01:00:01 +0000 (01:00 +0000)]
Merged.
smh22@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 19:43:04 +0000 (20:43 +0100)]
Fix VBD recovery logic on SMP guests (+ a minor error reporting fix for save)
Signed-off-by: Steven Hand <steven@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 19:23:07 +0000 (20:23 +0100)]
Implement generic notiication hold-off in the ring macros
(ring.h). Move net and blk split drivers to use it.
blktap probably needs some work. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
djm@kirby.fc.hp.com [Thu, 1 Dec 2005 17:24:33 +0000 (11:24 -0600)]
Fix flush_tlb_mask to no-op for non-SMP, now needed in grant_table.c
djm@kirby.fc.hp.com [Thu, 1 Dec 2005 17:21:48 +0000 (11:21 -0600)]
Fix pfn_valid call (by Kevin Tian)
vhanquez@kneesa.uk.xensource.com [Thu, 1 Dec 2005 13:13:15 +0000 (13:13 +0000)]
Prevent BVT scheduler to be set with a too low ctx_allow by applying
a 10 microsecs low limit to the user parameter.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 14:22:22 +0000 (15:22 +0100)]
Define explicit evtchn_port_t type (32 bits) and plumb up
to user space thru /dev/xen/evtchn.
Signed-off-by: Keir Fraser <keir@xensource.com>
dan@localhost.localdomain [Thu, 1 Dec 2005 11:15:31 +0000 (11:15 +0000)]
Add test for the last unresolved bit of bug #416. Check that
"xm list --long" reflects removed devices.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 10:27:27 +0000 (11:27 +0100)]
Move net split driver onto ring.h generic rings.
No backend should SHARED_RING_INIT(): that's the frontend's job.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 10:10:40 +0000 (11:10 +0100)]
ptsname() is applied to the master fd, not the slave fd.
Signed-off-by: Keir Fraser <keir@xensource.com>
vhanquez@kneesa.uk.xensource.com [Thu, 1 Dec 2005 07:31:50 +0000 (07:31 +0000)]
fix the console when only XEN_PHYSDEV_ACCESS is Yes.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
smh22@firebug.cl.cam.ac.uk [Thu, 1 Dec 2005 11:27:29 +0000 (12:27 +0100)]
Fix migrate.
Signed-off-by: Steven Hand <steven@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:40:26 +0000 (03:40 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:39:23 +0000 (03:39 +0000)]
Move the dom0 ballooning-out code from the xm create handler and into the
server, where it can be used on reboot and migrate as well as create.
Ballooning bugs may still exist (it is unclear) but this is certainly a good
step in the right direction.
Ignore the memory and maxmem entries in the store for dom0 when restarting.
This means that the value in use at the time becomes the configured target.
This should fix the bug whereby dom0_mem settings on the command line are
being overridden by (older) entries in the store.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:32:39 +0000 (03:32 +0000)]
Remove /local when xenstored starts. This stops stale data affecting the
system immediately after reboot.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:26:47 +0000 (03:26 +0000)]
Work around the fact that the physinfo dom0 call is not implemented for IA64.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:21:45 +0000 (03:21 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:19:40 +0000 (03:19 +0000)]
Added a pages_to_kib function, which converts a page count into a number of
KiB. This allows us to compute the correct amount to balloon out to support
a migration.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
rread@ubuntu.eng.hq.xensource.com [Thu, 1 Dec 2005 03:11:49 +0000 (20:11 -0700)]
Match rename of free_pages field to free_memory
Signed-off-by: Robert Read <rread@xensource.com>
stekloff@elm3b216.beaverton.ibm.com [Thu, 1 Dec 2005 03:09:35 +0000 (03:09 +0000)]
Remove config.py, it's autogenerated from config.py.in
emellor@leeni.uk.xensource.com [Thu, 1 Dec 2005 03:07:24 +0000 (03:07 +0000)]
Merged.
iap10@freefall.cl.cam.ac.uk [Thu, 1 Dec 2005 01:43:04 +0000 (02:43 +0100)]
Add a new /proc/xen file called 'capabilities'. Currently, when read in dom0 it will return 'control_d', and be empty when read in a guest. This provides a convenient way to allow the root user to detect whether they're running in a guest or dom0, and e.g. gate whether to start xend. In future, when we add more fine grained capabilities we will add other details into this file.
Signed-off-by: ian@xensource.com
iap10@freefall.cl.cam.ac.uk [Thu, 1 Dec 2005 01:36:46 +0000 (02:36 +0100)]
Improve the tls warning message to mention that the best soloution is to install a 'xen-friendly' glibc.
Signed-off-by: ian@xensource.com
djm@kirby.fc.hp.com [Wed, 30 Nov 2005 23:04:48 +0000 (17:04 -0600)]
Add (incomplete) dom0_physinfo call to try with xm list and xen-bugtool
djm@kirby.fc.hp.com [Wed, 30 Nov 2005 22:17:53 +0000 (16:17 -0600)]
devmem.c no longer needed in drivers/xen/core
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:55:08 +0000 (19:55 +0000)]
Merged.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:54:28 +0000 (19:54 +0000)]
Added xm rename command. Improve the argument checking and error reporting.
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:48:54 +0000 (19:48 +0000)]
Miscellaneous tidying up, no semantic changes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:48:21 +0000 (19:48 +0000)]
Fix test following uuid format change in changeset 8089.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:26:32 +0000 (19:26 +0000)]
Move the relocate.setupRelocation code into XendDomain, removing the mutual
dependency between those two classes.
Split the XendDomain constructor into two pieces so that XendDomainInfo can
call XendDomain.instance even during the initial startup of XendDomain.
These two together mean that there is no need for the horrendous hack using
XendRoot.get_component to pass the singleton instance of XendDomain around.
Both XendRoot.get_component and XendRoot.add_component can go.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 19:25:35 +0000 (19:25 +0000)]
Match rename of xm info field from memory to total_memory.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:55:09 +0000 (18:55 +0000)]
Fix the reporting when this test fails (the eyecatcher variables would not be
created if the domain creation actually succeeded). Use total_memory not
free_memory to determine how big to make the domain -- when ballooning down of
dom0 works properly, creating a domain larger than free_memory is possible.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:48:27 +0000 (18:48 +0000)]
Don't refuse to clean up after a domain death when the buffer is not empty. If
the domain has gone away, then no-one can attach to the pty because Xend will
have cleaned up the entries in the store, so the pty will never become ready to
write. The buffer will never get emptied, so cleanup will never occur. This
leaks ptys, file descriptors, and memory. Simply throw those data away instead.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:43:00 +0000 (18:43 +0000)]
Move the translation from pages to MiB out of XendNode and into the xc layer.
xc has access to the page size for the platform and the Python layer does not,
so there was a hardcoded "/ 256" in there.
Rename the "memory" physinfo parameter to "total_memory", to match the usage
elsewhere.
Tidy the code generating the SXP for xm info.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:38:48 +0000 (18:38 +0000)]
Cope with longs being passed to xstransact.write.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 30 Nov 2005 18:38:14 +0000 (18:38 +0000)]
Added the errno to the messages printed with the ERR macro. Tidy the use of
this macro where newlines have been appended -- the macro does this itself so
there is no need to add another one.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 16:24:27 +0000 (17:24 +0100)]
GNTTABOP_map_grant_ref returns error status and handle as
separate fields. Update callers for new interface. Also
use int16_t as standard error code type on all public
interfaces.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 15:03:05 +0000 (16:03 +0100)]
Public interface cleanups. Widen some fields in public
interface defintions for future extensibility. In particular,
grant references are now 32 bits and this has some knock-on
effects on split-driver interfaces.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:51:24 +0000 (12:51 +0100)]
Remove some vmx header files from Xen public interfaces.
They are not public.
Signed-off-by: Keir Fraser <keir@xensource.com>
dan@guaranine.beaverton.ibm.com [Wed, 30 Nov 2005 11:44:19 +0000 (11:44 +0000)]
Some tweaks to the restore and migrate tests to expose the consoles of the
restored DomUs, since they currently Oops on x86_64.
dan@caffeine.beaverton.ibm.com [Wed, 30 Nov 2005 11:42:07 +0000 (11:42 +0000)]
Remove useless test 05_create_noroot_noram
dan@guaranine.beaverton.ibm.com [Wed, 30 Nov 2005 11:41:33 +0000 (11:41 +0000)]
Enable console debug dumping so that we submit the oops generated by
network-detach to the reporting site.
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:32:16 +0000 (12:32 +0100)]
Fix serial pty creation in qemu-dm. Set raw attributes to
avoid weird buffering behaviour and obtain the pty name
via ptsname().
Signed-off-by: Ping Yu <ping.y.yu@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:16:35 +0000 (12:16 +0100)]
We need to do sync when mov_to_cr3 to a value already shadowed.
The L2 page and already shadowed L1 page may be out of sync.
This fixes the problems of segmentation faults and strange prints
when booting Redhat FC3 and make kernel in FC3 in VMX domain.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Nov 2005 11:13:53 +0000 (12:13 +0100)]
Add ATA-over-Ethernet as a module to the default 32-bit -xen config
(it is already included in the default 64-bit -xen config).
Signed-off-by: Keir Fraser <keir@xensource.com>